//------------------------------------------------------------------------
//	text format
//------------------------------------------------------------------------

#ifndef ANIMFORMAT_H
#define ANIMFORMAT_H
#pragma pack(push,1)

//----------------------------------------------------
//	trigger frame data
//----------------------------------------------------
typedef struct
{
	char	name[32];
	u32		parentBone;
	u32		frameRange[2];

} SAnimTriggerData;

//----------------------------------------------------
//	frame data
//----------------------------------------------------
typedef struct
{
	CVector	rootpos;

} SAnimFrameData;

//----------------------------------------------------
//	bone data
//----------------------------------------------------
typedef struct
{
	s8		quat[4];

} SAnimBoneData;

//----------------------------------------------------
//	animation data
//----------------------------------------------------
typedef struct
{
	char			name[64];
	u32				numFrames;
	u32				numBones;
	u32				numTriggers;

	SAnimFrameData	*pFrames;
	SAnimBoneData	*pBones;
	SAnimTriggerData	*pTriggers;

//	SAnimTriggerData	triggers[numTriggers]
//	SAnimFrameData	frames[numFrames]
//	SAnimBoneData	[numFrames][numBones]

} SAnimData;

#pragma pack(pop)
#endif
